Skip to content

feat: upgrade to k8s client 5.0 to simplify CR handling #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

metacosm
Copy link
Collaborator

No description provided.

@adam-sandor
Copy link
Collaborator

Wow.. this is awesome, I didn't even think of jumping on this yet and now we have a PR :)

@metacosm metacosm closed this Nov 19, 2020
@metacosm metacosm reopened this Nov 19, 2020
@csviri
Copy link
Collaborator

csviri commented Nov 19, 2020

Looks good to me!
Just we should take a look why the integration tests are failing.

@metacosm
Copy link
Collaborator Author

Looks good to me!
Just we should take a look why the integration tests are failing.

Yes, I'm looking into it and have found an issue with the kube client implementation which we are working to fix as well 😄

@metacosm
Copy link
Collaborator Author

That said the current IT failures look scary: VM crash! 😱

@kirek007
Copy link
Contributor

That said the current IT failures look scary: VM crash! 😱

Yep, looks like crash comes from kubrenetes-client internals, something related to resource watch feature

@kirek007
Copy link
Contributor

kirek007 commented Nov 19, 2020

@metacosm I've found that kubernetes client is calling Watch.onClose which is delegated to our code here:
java-operator-sdk/operator-framework/src/main/java/io/javaoperatorsdk/operator/processing/EventScheduler.java line 148.
Removing system.exit(1) line allows to get more understandable error message :)

@metacosm
Copy link
Collaborator Author

Yep been looking at it all morning, trying to find a solution… 😥

@metacosm metacosm force-pushed the improved-k8s-client branch from dafd71c to 407f1ba Compare November 19, 2020 15:42
@metacosm metacosm closed this Nov 19, 2020
@metacosm metacosm reopened this Nov 19, 2020
@kirek007 kirek007 mentioned this pull request Nov 20, 2020
@metacosm metacosm force-pushed the improved-k8s-client branch 4 times, most recently from 5a0b163 to 930725a Compare November 21, 2020 22:13
@metacosm metacosm changed the title feat: upgrade to k8s client 5.0 to simplify CR handling WIP: feat: upgrade to k8s client 5.0 to simplify CR handling Nov 24, 2020
@metacosm metacosm changed the title WIP: feat: upgrade to k8s client 5.0 to simplify CR handling feat: upgrade to k8s client 5.0 to simplify CR handling Nov 24, 2020
@metacosm metacosm marked this pull request as draft November 24, 2020 09:10
@metacosm metacosm marked this pull request as ready for review November 24, 2020 09:46
@metacosm
Copy link
Collaborator Author

Ready for review @adam-sandor @csviri

@kirek007
Copy link
Contributor

@metacosm thx for PR, I'll going to review it

It would be great to release this as alpha of our sdk
@adam-sandor @csviri.

@metacosm metacosm force-pushed the improved-k8s-client branch from 8db7f99 to fa9f9b8 Compare November 25, 2020 12:47
@kirek007 kirek007 changed the base branch from master to feat-update-kubernetes-client-5.0 November 30, 2020 14:34
@kirek007
Copy link
Contributor

I've change merge target to the dedicated branch where we'll track update of kubernetes client. We could release test versions from this branch if needed.

@metacosm
Copy link
Collaborator Author

metacosm commented Jan 7, 2021

I'm keeping this one opened until I can finish #288 which will supersede this PR.

@metacosm
Copy link
Collaborator Author

This has been implemented in #288

@metacosm metacosm closed this Jan 19, 2021
@metacosm metacosm deleted the improved-k8s-client branch January 19, 2021 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants